function columns(vm) {
    const cols = [
      {
        title: '序号',
        dataIndex: '序号',
        width: 60,
        align: 'center',
        customRender: function (t, r, index) {
          return parseInt(index) + 1
        }
      },
      {
        title:'年度',
        dataIndex:'',
        width: 60,
        align: 'center',
        customRender: (text, record, index) => {
          const obj = {
            children: text !== null ? text : "",
            attrs: {},
          };
          obj.attrs.rowSpan = vm.mergeCells(
            text,
            vm.dataSource,
            "checkContent",
            index
          );
          return obj;
        },
      },
      {
        title:'指标类别',
        dataIndex:'',
        align: 'center',
        width:80,
        colSpan:3,
        customRender: (value, record, index) => {
          const obj = {
            children: value,
            attrs: {
              rowSpan:0,
              colSpan:0
            },
          };
          // 行合并
          obj.attrs.rowSpan = vm.mergeCells(
            text,
            vm.dataSource,
            "checkContent",
            index
          );
          // 列合并
          obj.attrs.colSpan = vm.mergeColSpan(
            text,
            record,
            "checkContent",
            index
          );
          return obj;
        },
      },
      {
        title:'合并1',
        dataIndex:'',
        align: 'center',
        width:80,
        colSpan:0,
        customRender: (value, row, index) => {
          const obj = {
            children: value,
            attrs: {
              rowSpan:0,
              colSpan:0
            },
          };
          obj.attrs.rowSpan = vm.mergeCells(
            text,
            vm.dataSource,
            "checkContent",
            index
          );
          obj.attrs.colSpan = vm.mergeCells(
            text,
            vm.dataSource,
            "checkContent",
            index
          );
          return obj;
        },
      },
      {
        title:'合并2',
        dataIndex:'',
        align: 'center',
        width:80,
        colSpan:0
      },
      {
        title:'具体内容或金额',
        dataIndex:'',
        align: 'center',
        width:80,
      },
      {
        title:'项目类别',
        dataIndex:'',
        align: 'center',
        width:80,
        customRender: (text, record, index) => {
          const obj = {
            children: text !== null ? text : "",
            attrs: {},
          };
          obj.attrs.rowSpan = vm.mergeCells(
            text,
            vm.dataSource,
            "checkContent",
            index
          );
          return obj;
        },
      },
      {
        title:'项目名称',
        dataIndex:'',
        align: 'center',
        width:80,
        customRender: (text, record, index) => {
          const obj = {
            children: text !== null ? text : "",
            attrs: {},
          };
          obj.attrs.rowSpan = vm.mergeCells(
            text,
            vm.dataSource,
            "checkContent",
            index
          );
          return obj;
        },
      },
      {
        title:'实施单位',
        dataIndex:'',
        align: 'center',
        width:80,
        customRender: (text, record, index) => {
          const obj = {
            children: text !== null ? text : "",
            attrs: {},
          };
          obj.attrs.rowSpan = vm.mergeCells(
            text,
            vm.dataSource,
            "checkContent",
            index
          );
          return obj;
        },
      },
      {
        title:'工程地点(省市)',
        dataIndex:'',
        align: 'center',
        width:80,
        customRender: (text, record, index) => {
          const obj = {
            children: text !== null ? text : "",
            attrs: {},
          };
          obj.attrs.rowSpan = vm.mergeCells(
            text,
            vm.dataSource,
            "checkContent",
            index
          );
          return obj;
        },
      },
    ]
    return cols
  }
  
  export default columns